﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Kaidou.Model;
using Kaidou.Persister;
using Kaidou.Util;
using Kaidou.Bll;
using System.Collections.Generic;
using System.Globalization;
public partial class seal_seal_cancel : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginModel loginModel = (LoginModel)Session["loginModel"];

        if (loginModel == null)
        {
            Response.Redirect("../login.aspx");
            return;
        }
    }

    protected void confirm(object sender, EventArgs e)
    {
        TRN_Purch_SealManager validation = new TRN_Purch_SealManager( );
        TrnPurchSeal_a model = new TrnPurchSeal_a();
        //モデルに値をセットする。
        model.SealStrNo = SEAL_STR_NO.Text;
        model.SealEndNo = SEAL_END_NO.Text;
        List<string> errorCodeList = validation.checkSealCancel(model, Resources.Resource.ResourceManager);
        msg.Text = ErrorCodeUtil.errorCodeListToHtml(errorCodeList);

        if (errorCodeList.Count == 0)
        {
            Session["CANCELED_SEAL"] = model;
            Response.Redirect("seal_cancel_conf.aspx");
        }

    }
}
